package pages;

import core.TestBase;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import utils.Log4Test;

/**
 * Created by Walker on 7/26/14.
 */
public class SearchResultPage extends TestBase {


    protected By samsungLink =

            By.xpath(".//*[@id='head_banner_container']/div[3]/div/div[1]/div/div/div[3]/div[1]/div[2]/div[1]/a");

    protected WebElement searchLinkElem;

    public String  verifyProductLink(){

        Log4Test.info("Verify product link");

        searchLinkElem = webDriver.findElement(samsungLink);

        return searchLinkElem.getText();

    }

    public void openProductLink(){

        Log4Test.info("Open product characteristics");

        searchLinkElem.click();
    }
}
